const express = require("express");
const axios = require("axios");
const app = express();
// app.use(express.static("../"));
app.use((req,res,next)=>{
	res.set("Access-Control-Allow-Origin","*");
	next();
})
app.get("/maoyan",(req,res)=>{
	// 发送请求
	const url = "https://i.maoyan.com/api/mmdb/movie/v3/list/hot.json?ct=大连&ci=65&channelId=4";
	axios.get(url).then(value=>{
		res.json(value.data)
	})
})
app.listen(80,()=>{
	console.log("success");
})